package com.gable.util;

import javax.websocket.Session;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Created by sjx on 2018/5/11.
 */
public class WebSocketUtil {

    public static void sendMessage(Set<Session> sessionSet, String message){
        for(Session session:sessionSet){
            session.getAsyncRemote().sendText(message);
        }
    }
}
